<%@ Page Language="C#" %>

<script runat="server">

void Page_Load(object sender, System.EventArgs e)

{


DotNetNuke.Entities.Users.UserController objUserController = new DotNetNuke.Entities.Users.UserController();
int PID =  DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings().PortalId;
            ArrayList listroles = objUserController.GetUsers(PID, true, true);

            foreach (object i in listroles)
            {
                DotNetNuke.Entities.Users.UserInfo objuser = (DotNetNuke.Entities.Users.UserInfo)i;
				//Response.Write("Username: " + objuser.Username + " " + objuser.UserID + "; ");
				
				//DotNetNuke.Entities.Users.UserInfo uInfo =

				//DotNetNuke.Entities.Users.UserController.GetUserById(PID, objuser.UserID);

				if (objuser != null)

				{
				string password =

				DotNetNuke.Entities.Users.UserController.GetPassword(ref objuser, String.Empty);

				Response.Write("Username: " + objuser.Username + " Password: " + password + "; ");

				}
				else

				{

				Response.Write("UserInfo object is null");

				}
            }
			
}

</script>

<html>

<head>

<title>Recover Password</title>

</head>

<body>

</body>

</html>